package com.wenhai.leetcode.reverse;

/**
 *https://leetcode-cn.com/problems/reverse-bits/
 *
 * @author wenhai
 * @date   2021/3/29
 */
public class _190颠倒二进制位 {

    public static void main(String[] args) {
        System.out.println(Integer.toBinaryString(Integer.parseInt("55555555", 16)));
    }


    // you need treat n as an unsigned value
    public int reverseBits(int n) {
        return Integer.reverse(n);
    }
}
